<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <meta name="description" content="">
    <meta name="author" content="">
    <title>页面设置</title>
    <include file="Template/head"/>
<body>
<div class="actNav">
    <div class="doRefresh">页面设置</div>
    <a href="javascript:history.go(-1);" class="back"></a>
    <a href="{:U('Index/index')}" class="home"></a>
</div>
<div class="wapper ucenter">

    <header class="header clearfix">
        <if condition="$list['bg_pic'] neq ''">
            <div class="bg" style="background: url('{$bgPic}')">
                <span style="float:right;margin-top:125px;margin-right:11px;color:#DCAC6C">长按识别二维码</span>
            </div>
            <else/>
            <div class="bg" style="background: url('http://cdn.lydlr.com/public/images/header-bg.jpg')">
                <span style="float:right;margin-top:125px;margin-right:11px;color:#DCAC6C">长按识别二维码</span>
            </div>
        </if>

        <dl class="adviser pull-left">
            <dt>
                <if condition="$list['head_pic'] neq ''">
                    <img src="{$headPic}" alt="" class="headPic">
                    <else/>
                    <img src="http://cdn.lydlr.com/public/images/temp/3.jpg" class="headPic">
                </if>
            </dt>
            <dd>
                <p class="name">
                    <if condition="$userList['nick_name'] eq ''">
                        {$userList['name']}
                        <else/>
                        {$userList['nick_name']}
                    </if>
                </p>
                <a style="color:white;" href="tel:{$userList['mobile']}">TEL:{$userList['mobile']}</a>
            </dd>
        </dl>
        <if condition="$list.weixin_qrcode neq ''">
            <img src="{$weixinQrcode}" class="pull-right codeimg"/>
            <else/>
            <img src="http://cdn.lydlr.com/public/images/temp/2.jpg" class="pull-right codeimg">
        </if>
    </header>
    <div class="modifyInfo module">
        <h2 class="title">个人资料</h2>

        <form class="form-horizontal zcform" id="signupForm" method="post"
              action="{:U('Personal/postPageSetting',array('id'=>$userList['id']))}" enctype="multipart/form-data">
            <input id="personalJump" type="hidden" value="{:U('Personal/index')}"/>

            <div class="form-group">
                <label class="col-sm-2 control-label">姓&nbsp;&nbsp;&nbsp;名：</label>

                <div class="col-sm-10">
                    {$list.name}
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">昵&nbsp;&nbsp;&nbsp;称：</label>

                <div class="col-sm-10">
                    <input type='text' class="form-control" name="nick_name" value="{$userList.nick_name}"
                           placeholder="请输入您的昵称">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">首页分享: </label>

                <div class="col-sm-10">
                    <input type='text' class="form-control" name="share_home_title" value="{$userList.share_home_title}"
                           placeholder="输入首页标题的分享">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">头&nbsp;&nbsp;&nbsp;像：</label>

                <div class="col-sm-10 upload">
                    <span data-event-upload>浏览</span>
                    <input type="file" id="exampleInputFile" name="head"/>
                </div>
            </div>
            <div class="form-group">
                <label for="bg" class="col-sm-2 control-label">背&nbsp;&nbsp;&nbsp;景：</label>

                <div class="col-sm-10 upload">
                    <span data-event-upload>浏览</span>
                    <input type="file" id="bg" name="bg"/>
                </div>
            </div>
            <div class="form-group">
                <label for="qrcode" class="col-sm-2 control-label">二维码：</label>

                <div class="col-sm-10 upload">
                    <span data-event-upload>浏览</span>
                    <input type="file" id="qrcode" name="qrCode"/>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">手&nbsp;&nbsp;&nbsp;机：</label>

                <div class="col-sm-10">
                    {$list.mobile}
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">邮&nbsp;&nbsp;&nbsp;箱：</label>

                <div class="col-sm-10">
                    {$list.email}
                </div>
            </div>
            <div class="form-group btbox">
                <input type="submit" id="doSaveEdit" value="保存" class="sbtn save pull-left"/>
                <input type="reset" value="重置" class="sbtn reset pull-left"/>
            </div>
        </form>
    </div>

    <div class="modal fade popWin bs-example-modal-sm" id="myModalDel" tabindex="-1" role="dialog"
         aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-dialog modal-sm">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                            aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title" id="myModalLabel">提示</h4>
                </div>
                <div class="modal-body text-center">
                    <p class="tipsBox"><i class="warn"></i>请将信息填写完整</p>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-warning" data-dismiss="modal" aria-label="Close">确认</button>
                    <button type="button" class="btn btn-default" data-dismiss="modal" aria-label="Close">取消</button>
                </div>
            </div>
        </div>
    </div>

    <div class="modal fade popWin bs-example-modal-sm" id="myModalSuc" tabindex="-1" role="dialog"
         aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-dialog modal-sm">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                            aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title" id="myModalLabel">提示</h4>
                </div>
                <div class="modal-body text-center">
                    <p class="tipsBox"><i class="suc"></i>保存成功</p>
                </div>
            </div>
        </div>
    </div>
    <footer class="footer">
        <include file="Template/foot"/>
    </footer>
</div>
</body>
</html>
